package com.xuetang9.t9.hotel.beans;


import java.text.SimpleDateFormat;

public class RolePermission {

  private long id;
  private String name;
  private String displayname;
  private java.sql.Timestamp created;
  private String requrl;
  private String description;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getDisplayname() {
    return displayname;
  }

  public void setDisplayname(String displayname) {
    this.displayname = displayname;
  }


  public String getCreated() {
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    return simpleDateFormat.format(created);
  }

  public void setCreated(java.sql.Timestamp created) {
    this.created = created;
  }


  public String getRequrl() {
    return requrl;
  }

  public void setRequrl(String requrl) {
    this.requrl = requrl;
  }


  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  @Override
  public String toString() {
    return "RolePermission{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", displayname='" + displayname + '\'' +
            ", created=" + created +
            ", requrl='" + requrl + '\'' +
            ", description='" + description + '\'' +
            '}';
  }
}
